Integrand size = 16, antiderivative size = 122 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=-4 x+\frac {x^4}{4}+\frac {\arctan \left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {3}{2} 3^{5/6} \arctan \left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )-\frac {1}{6} \log (1+x)+\frac {3}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}+x\right )+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {3}{4} \sqrt [3]{3} \log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right ) \]
[Out]
Time = 0.07 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {1381, 1516, 1436, 206, 31, 648, 632, 210, 642, 631} \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {\arctan \left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {3}{2} 3^{5/6} \arctan \left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )+\frac {x^4}{4}+\frac {1}{12} \log \left (x^2-x+1\right )-\frac {3}{4} \sqrt [3]{3} \log \left (x^2-\sqrt [3]{3} x+3^{2/3}\right )-4 x-\frac {1}{6} \log (x+1)+\frac {3}{2} \sqrt [3]{3} \log \left (x+\sqrt [3]{3}\right ) \]
[In]
[Out]
Rule 31
Rule 206
Rule 210
Rule 631
Rule 632
Rule 642
Rule 648
Rule 1381
Rule 1436
Rule 1516
Rubi steps \begin{align*} \text {integral}& = \frac {x^4}{4}-\frac {1}{4} \int \frac {x^3 \left (12+16 x^3\right )}{3+4 x^3+x^6} \, dx \\ & = -4 x+\frac {x^4}{4}+\frac {1}{4} \int \frac {48+52 x^3}{3+4 x^3+x^6} \, dx \\ & = -4 x+\frac {x^4}{4}-\frac {1}{2} \int \frac {1}{1+x^3} \, dx+\frac {27}{2} \int \frac {1}{3+x^3} \, dx \\ & = -4 x+\frac {x^4}{4}-\frac {1}{6} \int \frac {1}{1+x} \, dx-\frac {1}{6} \int \frac {2-x}{1-x+x^2} \, dx+\frac {1}{2} \left (3 \sqrt [3]{3}\right ) \int \frac {1}{\sqrt [3]{3}+x} \, dx+\frac {1}{2} \left (3 \sqrt [3]{3}\right ) \int \frac {2 \sqrt [3]{3}-x}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx \\ & = -4 x+\frac {x^4}{4}-\frac {1}{6} \log (1+x)+\frac {3}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}+x\right )+\frac {1}{12} \int \frac {-1+2 x}{1-x+x^2} \, dx-\frac {1}{4} \int \frac {1}{1-x+x^2} \, dx-\frac {1}{4} \left (3 \sqrt [3]{3}\right ) \int \frac {-\sqrt [3]{3}+2 x}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx+\frac {1}{4} \left (9\ 3^{2/3}\right ) \int \frac {1}{3^{2/3}-\sqrt [3]{3} x+x^2} \, dx \\ & = -4 x+\frac {x^4}{4}-\frac {1}{6} \log (1+x)+\frac {3}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}+x\right )+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {3}{4} \sqrt [3]{3} \log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right )+\frac {1}{2} \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 x\right )+\frac {1}{2} \left (9 \sqrt [3]{3}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 x}{\sqrt [3]{3}}\right ) \\ & = -4 x+\frac {x^4}{4}+\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}-\frac {3}{2} 3^{5/6} \tan ^{-1}\left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )-\frac {1}{6} \log (1+x)+\frac {3}{2} \sqrt [3]{3} \log \left (\sqrt [3]{3}+x\right )+\frac {1}{12} \log \left (1-x+x^2\right )-\frac {3}{4} \sqrt [3]{3} \log \left (3^{2/3}-\sqrt [3]{3} x+x^2\right ) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 114, normalized size of antiderivative = 0.93 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {1}{12} \left (-48 x+3 x^4-18\ 3^{5/6} \arctan \left (\frac {\sqrt [3]{3}-2 x}{3^{5/6}}\right )-2 \sqrt {3} \arctan \left (\frac {-1+2 x}{\sqrt {3}}\right )-2 \log (1+x)+18 \sqrt [3]{3} \log \left (3+3^{2/3} x\right )+\log \left (1-x+x^2\right )-9 \sqrt [3]{3} \log \left (3-3^{2/3} x+\sqrt [3]{3} x^2\right )\right ) \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.06 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.51
method | result | size |
risch | \(\frac {x^{4}}{4}-4 x +\frac {\ln \left (4 x^{2}-4 x +4\right )}{12}-\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{6}-\frac {\ln \left (x +1\right )}{6}+\frac {3 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{3}-3\right )}{\sum }\textit {\_R} \ln \left (x +\textit {\_R} \right )\right )}{2}\) | \(62\) |
default | \(\frac {x^{4}}{4}-4 x -\frac {\ln \left (x +1\right )}{6}+\frac {3 \,3^{\frac {1}{3}} \ln \left (3^{\frac {1}{3}}+x \right )}{2}-\frac {3 \,3^{\frac {1}{3}} \ln \left (3^{\frac {2}{3}}-3^{\frac {1}{3}} x +x^{2}\right )}{4}+\frac {3 \,3^{\frac {5}{6}} \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 \,3^{\frac {2}{3}} x}{3}-1\right )}{3}\right )}{2}+\frac {\ln \left (x^{2}-x +1\right )}{12}-\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{6}\) | \(92\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.74 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {1}{4} \, x^{4} + \frac {3}{2} \cdot 3^{\frac {5}{6}} \arctan \left (\frac {2}{3} \cdot 3^{\frac {1}{6}} x - \frac {1}{3} \, \sqrt {3}\right ) - \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {3}{4} \cdot 3^{\frac {1}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {3}{2} \cdot 3^{\frac {1}{3}} \log \left (x + 3^{\frac {1}{3}}\right ) - 4 \, x + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left (x + 1\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.33 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.06 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {x^{4}}{4} - 4 x - \frac {\log {\left (x + 1 \right )}}{6} + \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right ) \log {\left (x - \frac {9841}{19692} - \frac {9841 \sqrt {3} i}{19692} + \frac {360 \left (\frac {1}{12} + \frac {\sqrt {3} i}{12}\right )^{4}}{547} \right )} + \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right ) \log {\left (x - \frac {9841}{19692} + \frac {360 \left (\frac {1}{12} - \frac {\sqrt {3} i}{12}\right )^{4}}{547} + \frac {9841 \sqrt {3} i}{19692} \right )} + \operatorname {RootSum} {\left (8 t^{3} - 81, \left ( t \mapsto t \log {\left (\frac {360 t^{4}}{547} - \frac {9841 t}{1641} + x \right )} \right )\right )} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.75 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {1}{4} \, x^{4} + \frac {3}{2} \cdot 3^{\frac {5}{6}} \arctan \left (\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) - \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {3}{4} \cdot 3^{\frac {1}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {3}{2} \cdot 3^{\frac {1}{3}} \log \left (x + 3^{\frac {1}{3}}\right ) - 4 \, x + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left (x + 1\right ) \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 94, normalized size of antiderivative = 0.77 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {1}{4} \, x^{4} + \frac {3}{2} \cdot 3^{\frac {5}{6}} \arctan \left (\frac {1}{3} \cdot 3^{\frac {1}{6}} {\left (2 \, x - 3^{\frac {1}{3}}\right )}\right ) - \frac {1}{6} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {3}{4} \cdot 3^{\frac {1}{3}} \log \left (x^{2} - 3^{\frac {1}{3}} x + 3^{\frac {2}{3}}\right ) + \frac {3}{2} \cdot 3^{\frac {1}{3}} \log \left ({\left | x + 3^{\frac {1}{3}} \right |}\right ) - 4 \, x + \frac {1}{12} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{6} \, \log \left ({\left | x + 1 \right |}\right ) \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 119, normalized size of antiderivative = 0.98 \[ \int \frac {x^9}{3+4 x^3+x^6} \, dx=\frac {3\,3^{1/3}\,\ln \left (x+3^{1/3}\right )}{2}-\frac {\ln \left (x+1\right )}{6}-4\,x+\ln \left (x-\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{12}+\frac {\sqrt {3}\,1{}\mathrm {i}}{12}\right )-\ln \left (x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {1}{12}+\frac {\sqrt {3}\,1{}\mathrm {i}}{12}\right )+\frac {x^4}{4}-\ln \left (x-\frac {3^{1/3}}{2}-\frac {3^{5/6}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {3\,3^{1/3}}{4}+\frac {3^{5/6}\,3{}\mathrm {i}}{4}\right )+3^{1/3}\,\ln \left (x-\frac {3^{1/3}}{2}+\frac {3^{5/6}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {3}{4}+\frac {\sqrt {3}\,3{}\mathrm {i}}{4}\right ) \]
[In]
[Out]